package com.hzj.service;


import com.hzj.pojo.RefundInfo;
import com.hzj.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(name = "PROVIDER-ORDER-8003" ,contextId = "wxyRefundInfoService")
public interface RefundInfoService {

    /**
     * 查询退款表
     */
    @PostMapping("/atformapi/order/orderInfo/queryRefundInfo")
    public Result queryRefundInfo();

    /**
     * 修改OR添加退款表
     */
    @PostMapping("/atformapi/order/orderInfo/updateRefundInfo")
    public Result updateRefundInfo(@RequestBody RefundInfo refundInfo);

    /**
     * 删除退款表
     */
    @PostMapping("/atformapi/order/orderInfo/deleteRefundInfo/{outTradeNo}")
    public Result deleteRefundInfo(@PathVariable String outTradeNo);

    @PostMapping("/atformapi/order/orderInfo/querRefundInfoByOrderId/{orderId}")
    public RefundInfo querRefundInfoByOrderId(@PathVariable Integer orderId);
}
